/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (c) Huawei Technologies Co., Ltd. 2023-2023. All rights reserved.
 * Author: Huawei OS Kernel Lab
 * Create: Thu Aug 15 16:14:23 2023
 */

#include <asm-generic/vmlinux.lds.h>
#include <asm/cache.h>
#include <asm/page.h>

SECTIONS
{
	. = ALIGN((1 << 12));
	.text : {
		_text = .;
		_stext = .;

		TEXT_TEXT
		SCHED_TEXT
		LOCK_TEXT

		_etext = .;

		. = ALIGN((1 << 12));
		_sinittext = .;
		INIT_TEXT
		_einittext = .;
	}

	.data..ro_after_init : {
		RO_AFTER_INIT_DATA
	}

	/* for module rsvd */
	. = ALIGN(CONSTANT(COMMONPAGESIZE));
	.liblinux.modules.rsvd ALIGN(CONSTANT(COMMONPAGESIZE)) (NOLOAD) : {
		__liblinux_modules_pool = .;
		. = . + (1 << CONFIG_LIBLINUX_MODULES_RSVD_BITS);
		__liblinux_modules_pool_end = .;
	} : module_rsvd

}
